from io import BytesIO
import re

p='dddd2323df122343dfdf fdf1212 dfdf232  d1f 2w2'

res=re.match(r'([a-z]+)([1-9]+)',p)
print(res.group())
print(res.group(1))

res1= re.findall(r'([a-z]+)([1-9]+)+',p)
print(res1)
print(''.join(res1[0]))


# 读取图片地址进行数据处理
import requests
img_path='http://alifei03.cfp.cn/creative/vcg/800/new/VCG211184172582-WRA.jpg'

rs=requests.get(url=img_path)
with open('1.jpg',mode='wb') as f:
    f.write(rs.content)

bytes('test',encoding='utf-8')